/******************************************************************
 *
 * 	Programmer:		Brandon Shouse
 * 	Class:			CS362-400
 * 	Assignment:		Assignment 3
 *
 * 	Description: Unit Test for the fullDeckCount() function
 *
 *****************************************************************/

#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() 
{
	struct gameState state;
	int numPlayer = 2;
	int p, r, i, test;
	int seed = 1000;
	int k[10] = {adventurer, council_room, feast, gardens, mine, 
		remodel, smithy, village, baron, great_hall};

	memset(&state, 23, sizeof(struct gameState));
	r = initializeGame(numPlayer, k, seed, &state);

	printf("Testing fullDeckCount()...\n");

	state.deckCount[1] = 1;
	state.handCount[1] = 1;
	state.discardCount[1] = 1;

	state.deck[1][0] = province;
	state.hand[1][0] = province;
	state.discard[1][0] = province;

	test = fullDeckCount(1, province, &state);
	assert (test == 3);

	printf("\tfullDeckCount count of Province: Passed\n");

	printf("fullDeckCount passed all Tests...\n");

	return 0;

}

